/*
 * sctbb_method_task.h
 *
 *  Created on: Apr 22, 2010
 *      Author: sdaniele
 */

#ifndef SCTBB_THREAD_TASK_H_
#define SCTBB_THREAD_TASK_H_

#include "tbb/task.h"


using namespace tbb;

namespace sc_core {

class sc_thread_process;
class sc_cor_pkg;


class sc_tbb_thread_task : public ::tbb::task
{
private:
	sc_thread_process* 	m_thread;
	sc_cor_pkg* 		m_cor_pkg; // the simcontext's coroutine package

public:
	sc_tbb_thread_task(sc_thread_process* thread, sc_cor_pkg* cor_pkg);
	::tbb::task* execute();
};

}
#endif /* SCTBB_THREAD_TASK_H_ */
